<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Email check</title>
<style type="text/css">
 #top{
 	width:500px;
 	height:400px;
 	margin:0 auto;
 	text-align:center;
 }
</style>
	<script src="../page/front/index/js/jquery.min.js"></script>
</head>
<body>
	<div id="top">
		您的邮箱<input type="text" id="email"/><button type="button" id="you">获取验证码</button><br/>
		验证码<input type="text" id="cpass"><br/>
		<button type="button" id="check">提交</button>
	</div>
	<script type="text/javascript">
		$("button#you").click(function(){
			var email = $("#email").val();
			var pass = $("#cpass").val();
			$.post("../email/check.json?email="+email,function(json){
				alert(json);
			});
		});
		$("button#check").click(function(){
			var email = $("#email").val();
			var pass = $("#cpass").val();
			$.post("../email/checked.json?email="+email+"&checkPass="+pass,function(json){
				alert(json);
			});
		});
	</script>
</body>
</html>